package team.scau.laboratory_repair.modules.po;

import lombok.*;
import team.scau.laboratory_repair.common.base.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.sql.Timestamp;


/**
 * @author 30254
 * creadtedate:2018/10/25
 */

@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "lab_domain")
public class Domain extends BaseModel {

    @Builder
    public Domain(Long id, Timestamp createTime, Timestamp updateTime, Timestamp deleteTime, Boolean valid, Long areaId, String room, String staffIds) {
        super(id, createTime, updateTime, deleteTime, valid);
        this.areaId = areaId;
        this.room = room;
        this.staffIds = staffIds;
    }

    public Domain(Domain d){
        super();
        this.areaId = d.areaId;
        this.room = d.room;
        this.staffIds = d.staffIds;
    }

    @Column
    private Long areaId;
    @Column
    private String room;
    @Column
    private String staffIds;
}
